Fix GDB/MI inline completion.
authorChong Yidong <cyd@gnu.org>
Sun, 25 Dec 2011 10:46:49 +0000 (18:46 +0800)
committerChong Yidong <cyd@gnu.org>
Sun, 25 Dec 2011 10:46:49 +0000 (18:46 +0800)
commit745c8bbc59cd3ff92635f6ff7b3d849ba55dc5dc
treea8c4b0bfb7bb3f286daa506b8f09cec6f7d9d540
parent8a2bd873396393398c47fd91e910ed4cb28b4cac
Fix GDB/MI inline completion.

* progmodes/gdb-mi.el (gdb-input): Accept command and handler
function as separate arguments.
(gdb-init-1, gdb-non-stop-handler, gdb-check-target-async)
(gdb-tooltip-print-1, gud-watch, gdb-speedbar-update)
(gdb-var-list-children, gdb-var-set-format, gdb-var-delete-1)
(gdb-var-delete-children, gdb-edit-value, gdb-var-update)
(gdb-stopped, def-gdb-auto-update-trigger)
(gdb-place-breakpoints, gdb-select-thread, gdb-select-frame)
(gdb-get-changed-registers, gdb-get-main-selected-frame): Callers
changed.
(gud-gdbmi-completions): New function.
(gdb): Use it for generating the completion table.

* progmodes/gud.el (gud-gdb-fetch-lines-filter): Just use
gud-gdb-marker-filter without taking it as an argument.
(gud-gdb-run-command-fetch-lines): Caller changed.
(gud-gdb-completion-function): New variable.
(gud-gdb-completion-at-point): Use it.
(gud-gdb-completions-1): Split from gud-gdb-completions.
lisp/ChangeLog
lisp/progmodes/gdb-mi.el
lisp/progmodes/gud.el